﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAO;
using DTO;

namespace BUS
{
    public class ChiTietPhieuNhapHangBUS
    {
        
        public List<ChiTietPhieuNhapHangDTO> DanhSachChiTietPNH()
        {
            ChiTietPhieuNhapHangDAO ctpnhDAO = new ChiTietPhieuNhapHangDAO();
            return ctpnhDAO.DanhSachChiTietPNH();
        }

        public string ThemCTPhieuNhapHang(ChiTietPhieuNhapHangDTO ctpnhDTO)
        {
            ChiTietPhieuNhapHangDAO ctpnhDAO = new ChiTietPhieuNhapHangDAO();
            return ctpnhDAO.ThemCTPhieuNhapHang(ctpnhDTO);
        }
        public int LayMaChiTietPNH()
        {
            ChiTietPhieuNhapHangDAO ctpnhDAO = new ChiTietPhieuNhapHangDAO();
            return ctpnhDAO.LayMaChiTietPNH();
        }
    }
}

